﻿using UnityEngine;
using System.Collections;
using com.gzc.zgxq.game;

public class ChessRuleModel {

    public ChessRuleModel ( ) { 
    
    }

    /// <summary>
    /// 判断走法是否合理，生成所有走法后，判断每个走法是否合理，只把合理的走法留下来。
    /// </summary>
    /// <param name="move"></param>
    /// <returns></returns>
    public bool LegalMove (int move) {
        return ChessMoveSearchEnginMain.LegalMove(move);
    }

    /// <summary>
    /// 判断是否被将军
    /// </summary>
    /// <returns></returns>
    public bool Checked ( ) {
        return ChessMoveSearchEnginMain.Checked( );
    }

}
